package com.usefullc.crawler.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.usefullc.system.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 爬虫活动切片实例实体
 * @author: 星空
 * @date: 2023-07-12
 */
@ApiModel("爬虫活动切片实例")
@TableName("crawler_active_slice_instance")
@Data
public class ActiveSliceInstance extends BaseEntity {

//useful_auto_generate_section_start

    @ApiModelProperty(notes = "客户端任务ID")
    @TableField(value="`clientTaskId`")
    private String clientTaskId;

    @ApiModelProperty(notes = "活动ID")
    @TableField(value="`activeId`")
    private Long activeId;

    @ApiModelProperty(notes = "活动实例ID")
    @TableField(value="`activeInstanceId`")
    private Long activeInstanceId;

    @ApiModelProperty(notes = "活动主实例ID")
    @TableField(value="`activeMainInstanceId`")
    private Long activeMainInstanceId;

    @ApiModelProperty(notes = "活动实例ID")
    @TableField(value="`activeProcessId`")
    private Long activeProcessId;

    @ApiModelProperty(notes = "失败内容")
    @TableField(value="`errContent`")
    private String errContent;

    @ApiModelProperty(notes = "是否拦截，调试（0 否； 1 是，默认 ")
    @TableField(value="`intercept`")
    private Boolean intercept;

    @ApiModelProperty(notes = "名称")
    @TableField(value="`name`")
    private String name;

    @ApiModelProperty(notes = "返回解析主体")
    @TableField(value="`responseAnalyseBody`")
    private String responseAnalyseBody;

    @ApiModelProperty(notes = "返回主体")
    @TableField(value="`responseBody`")
    private String responseBody;

    @ApiModelProperty(notes = "返回原生头部")
    @TableField(value="`responseRawHeader`")
    private String responseRawHeader;

    @ApiModelProperty(notes = "状态（0 初始； 1 成功；2 失败 ")
    @TableField(value="`status`")
    private Integer status;

    @ApiModelProperty(notes = "发费时间（毫秒数")
    @TableField(value="`takeTime`")
    private Long takeTime;

    @ApiModelProperty(notes = "任务状态（0 未处理，1 处理中  ")
    @TableField(value="`taskStatus`")
    private Integer taskStatus;

    @ApiModelProperty(notes = "模板ID")
    @TableField(value="`templateId`")
    private Long templateId;

    @ApiModelProperty(notes = "URL")
    @TableField(value="`url`")
    private String url;



//useful_auto_generate_section_end

    @ApiModelProperty(notes = "用户ID")
    private Long userId;

}
